package utils;

import java.util.Comparator;

import components.Synapse;

public class  SynapseComparator <T> implements Comparator<Synapse> {

	@Override	
	public int compare(Synapse s1, Synapse s2) {
		if(s1.getSpikeTime() < s2.getSpikeTime()) 
			return 1;
		else if (s1.getSpikeTime() > s2.getSpikeTime())
			return -1;
		else
			return 0;
	}

}
